package com.example.demo.Service;

import com.example.demo.Entity.OrderList;

import java.util.ArrayList;

public interface OrderService {
    public int countUserOrderById(String uid);

    public OrderList selectOrderByOid(long OrderId);

    public boolean createOrder(OrderList order);

    public ArrayList<OrderList> selectOrderByUid(String uid);

    public boolean editOrderRemark(long OrderId, String Remark);

    public boolean editOrderNumber(long OrderId, String Number);

    public boolean editOrderAddress(long OrderId, String Address);

    public boolean updatePrice(long OrderId, String Number, float Price);

    public boolean cancelOrder(long OrderId);

    public boolean confirmOrder(long OrderId);

    public void payOrder(long OrderId);

    public int noPayOrder(String UserId);

    public OrderList selectNewestOrder();
}
